#CFLAGS += -g -Wall -DDEBUG -std=c99
export CFLAGS = -g -std=gnu99 -Wno-unused-parameter -Wno-unused-variable

TARGET = ftpc
SRC = $(wildcard ./*.c)
OBJS = $(patsubst %.c, %.o , $(SRC))

$(TARGET):${OBJS} 
	$(CC) -o $(TARGET) $(CFLAGS) $(OBJS) $(LDFLAGS)

${OBJS}:%.o:%.c
	$(CC) -c $< -o $@ $(CFLAGS) $(INCLUDE)

clean:
	-$(RM) $(TARGET)
	-$(RM) $(OBJS)
